package br.odb.liboldfart.parser;

import java.io.InputStream;

//=============================================================================
/**
 * @author Daniel "Monty" Monteiro
 */
public interface HierarchicalParser extends FileFormatParser {
//-----------------------------------------------------------------------------	
	public void preBuffer( InputStream in );
	//-----------------------------------------------------------------------------
	public String parseNode(String myString);
	//-----------------------------------------------------------------------------
	public String parseDocument(String myString);
	//-----------------------------------------------------------------------------
	public String parseEndDocument(String myString);
	//-----------------------------------------------------------------------------
	public String parseVector(String myString);
//-----------------------------------------------------------------------------
	public String parseBlock(String myString);
	//-----------------------------------------------------------------------------
	public String parseEndVector(String myString);
//-----------------------------------------------------------------------------
	public String parseEndBlock(String myString);
//-----------------------------------------------------------------------------	
	public void setBlockOpenToken(String token);
//-----------------------------------------------------------------------------
	public void setBlockCloseToken(String token);
//-----------------------------------------------------------------------------
	public void setVectorOpenToken(String token);
//-----------------------------------------------------------------------------
	public void setVectorCloseToken(String token);
//-----------------------------------------------------------------------------
	public void handleEOL();
//-----------------------------------------------------------------------------
	public void exitWithError();
//-----------------------------------------------------------------------------
}
//=============================================================================